home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 41
/
Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso
/
-seriously_amiga-
/
misc
/
evenmore
/
rexx
/
funnytalk.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-04-28
|
7KB
|
160 lines
/*****************************************************/
/* */
/* Funnytalk.rexx */
/* for EvenMore - Copyright Chris Perver @1996-1998 */
/* */
/****************************************************/
address 'EvenMore.1'
options results
"GETTOTALLINES"
totlines = RESULT
If Open(file,'Ram:funnytalk','W') then
do
line = 1
do while line<totlines
"GETLINE "line
text = RESULT
if text~='' then
do
text = rude(text)
end
Call Writeln(file, text)
line = line + 1
say totlines - line
end
Call Close(file)
end
"OPEN Ram:funnytalk"
exit
rude:
parse var text
if random(1,4,time('S'))=1 then
do
pos=pos('!',text,random(1,length(text),time('S')))
if pos>0 then text=insert('. So there',text,pos-1)
end
if random(1,4,time('S'))=1 then
do
pos=pos('?',text,random(1,length(text),time('S')))
if pos>0 then text=insert(', ok mate',text,pos-1)
end
if random(1,4,time('S'))=1 then
do
pos=pos('. ',text,random(1,length(text),time('S')))
if pos>0 then text=insert('. ''S coo'', bro',text,pos-1)
end
if random(1,4,time('S'))=1 then
do
pos=pos('. ',text,random(1,length(text),time('S')))
if pos>0 then text=insert('. What it is, mama',text,pos-1)
end
if random(1,4,time('S'))=1 then
do
pos=pos('. ',text,random(1,length(text),time('S')))
if pos>0 then text=insert('. Ah be baaad',text,pos-1)
end
/* space around words to ensure we are dealing with a whole word */
/* or else sounds have to be compatible with every phrase */
text=wordcheck(' hello | yo ') /* hello */
text=wordcheck(' isn''t | ain''t ') /* isn't */
text=wordcheck(' a | some ') /* a */
text=wordcheck(' are | is ') /* are */
text=wordcheck(' is | be ') /* is */
text=wordcheck(' name | dojigger ') /* name */
text=wordcheck(' today | the ''savo ') /* today */
text=wordcheck(' you | ya'' ') /* you */
text=wordcheck(' you all | yall ') /* you all */
text=wordcheck(' it is | ''tis ') /* it is */
text=wordcheck(' yes | yep ') /* yes */
text=wordcheck(' no | nah ') /* no */
text=wordcheck(' to | t''') /* to */
text=wordcheck(' that | t''at ') /* that */
text=wordcheck(' just | but ') /* just */
text=wordcheck(' mother | ma ') /* mother */
text=wordcheck(' woman | mama ') /* woman */
text=wordcheck(' man | dude ') /* man */
text=wordcheck(' father | pa ') /* father */
text=wordcheck(' sister | sis'' ') /* sister */
text=wordcheck(' friend | homey ') /* friend */
text=wordcheck(' my | mah'' ') /* my */
text=wordcheck(' we | us ') /* we */
text=wordcheck(' am | be ') /* am */
text=wordcheck(' i | ah'' ') /* i */
text=wordcheck(' man | dude ') /* man */
text=wordcheck(' one | un'' ') /* one */
text=wordcheck(' beat | whup'' ') /* beat */
text=wordcheck(' dead | deed ') /* dead */
text=wordcheck(' dead | beat ') /* dead */
text=wordcheck(' dead | gone ') /* dead */
text=wordcheck(' big | hefty ') /* big */
text=wordcheck(' big | huge ') /* big */
text=wordcheck(' large | goofy ') /* large */
text=wordcheck(' large | lanky ') /* large */
text=wordcheck(' small | wee ') /* small */
text=wordcheck(' small | shrimp ') /* small */
text=wordcheck(' Windows95 | Windoof95 ') /* Windows95 */
text=wordcheck(' Windows95 | Winblows95 ') /* Windows95 */
text=wordcheck(' Windows95 | Windoze95 ') /* Windows95 */
text=wordcheck(' MSDos | MSDog ') /* MSDos */
text=wordcheck(' MicroSoft | MicroSmell ') /* Microsoft */
text=wordcheck(' MicroSoft | MicroSh*t ') /* Microsoft */
text=wordcheck(' MicroSoft | MicroSick ') /* Microsoft */
text=wordcheck(' MicroSoft | MicroSlick ') /* Microsoft */
text=wordcheck(' MicroSoft | MicroSloth ') /* Microsoft */
text=wordcheck(' any | no ') /* any */
text=wordcheck(' of | uh ') /* of */
text=wordcheck(' the | da ') /* the */
text=wordcheck(':|, dig dis:') /* : */
text=wordcheck(' up | down ') /* up */
text=wordcheck(' down | waay down ') /* down */
text=wordcheck(' sure | sho'' nuff ') /* sure */
text=wordcheck(' sort of | radical ') /* sort of */
text=wordcheck(' have | gots'' ') /* have */
text=wordcheck(' money | bre''d ') /* money */
text=wordcheck(' cash | bre''d ') /* money */
text=wordcheck(' very | real ') /* very */
text=wordcheck('tion|shun') /* tion words */
text=wordcheck('er |a'' ') /* er words */
text=wordcheck('ing |in'' ') /* ing words */
text=wordcheck('ork|urk') /* ork words */
text=wordcheck('ork|erk') /* ork words */
text=wordcheck('or|o''') /* or words */
text=wordcheck('of|o''') /* of words */
text=wordcheck('o |o''s ') /* o words */
text=wordcheck('th|d') /* th words */
text=wordcheck('th|v') /* th words */
text=wordcheck('e |es ') /* e words */
text=wordcheck('s |sh ') /* s words */
text=wordcheck(' ca| ki') /* ca words */
text=wordcheck('tt|tst') /* tt words */
text=wordcheck('tch|sh') /* tch words */
text=wordcheck('ai|e') /* ai words */
text=wordcheck('ou|u') /* ou words */
text=wordcheck('ight|ite') /* ight words */
text=wordcheck(' su| schu') /* su words */
text=wordcheck('at |ut ') /* at words */
text=wordcheck('as |uz ') /* as words */
text=wordcheck('oes|uz') /* oes words */
return text
wordcheck:
parse arg oldword'|'newword
stringpos=pos(Upper(oldword),Upper(text))
do while stringpos>0
if random(1,2,time('S'))=1 then
do
text=delstr(text,stringpos,length(oldword))
text=insert(newword,text,stringpos-1)
end
stringpos=pos(Upper(oldword),Upper(text),stringpos+length(newword))
end
return text